package com.whisper.common.exception.file;

import static com.whisper.common.constant.ErrorCodeConstants.FILE_NAME_LENGTH_LIMIT_EXCEPTION;
import static com.whisper.common.constant.ErrorCodeConstants.FILE_UPLOAD_FILENAME_EXCEED_LENGTH;

/**
 * 文件名称超长限制异常类
 * 
 * @author whisper
 */
public class FileNameLengthLimitExceededException extends FileException
{
    private static final long serialVersionUID = 1L;

    public FileNameLengthLimitExceededException(int defaultFileNameLength)
    {
        super(FILE_UPLOAD_FILENAME_EXCEED_LENGTH, new Object[] { defaultFileNameLength });
    }

    public FileNameLengthLimitExceededException()
    {
        super(FILE_NAME_LENGTH_LIMIT_EXCEPTION, null, null);
    }
}
